package edu.sctu.practice.class01.liangyuxiang.assign03.test1;

/**
 * Created by 梁玉翔 on 2015/10/22.
 */
public class GeometricObjectMain {
    public static void main(String[] args) {

        Circle circle = new Circle("黄色",3.5);
        Display.displayGeometricObject(circle);

        Rectangle rectangle = new Rectangle("黑色",3,5);
        Display.displayGeometricObject(rectangle);

        System.out.println("面积是否相等:"+Equal.equalArea(circle, rectangle));
    }
}
